mixin images(...arg)
  // 背景图
  each idx in arg
    -var image = images[idx].url
    -var w = images[idx].width
    -var h = images[idx].height

    svg.svg-img(
      data-fill='#515151', 
        style=`display: inline-block; width: 100%; vertical-align: top; 
        background-position: 0% 0%; background-repeat: no-repeat; 
        background-size:100% 100%; 
        background-attachment: scroll; 
        background-image: url("${image}");
        -webkit-tap-highlight-color:transparent;
        -webkit-user-select:none;line-height:0;
        font-size:0px;pointer-events:none;margin-top:-1px;`,  
        viewBox=`0 0 ${w} ${h}`
      )


mixin _images(image, w, h)
  // 拆解用
  svg.svg-img(
      data-fill='#515151', 
      style=`display: inline-block; width: 100%; vertical-align: top; 
      background-position: 0% 0%; background-repeat: no-repeat; 
      background-size:100% 100%; 
      background-attachment: scroll; 
      background-image: url("${image}");
      -webkit-tap-highlight-color:transparent;
      -webkit-user-select:none;line-height:0;
      font-size:0px;pointer-events:none;margin-top:-1px;`,  
      viewBox=`0 0 ${w} ${h}`
    )
